package com.smz.service;


import com.smz.entity.PageEntity;
import com.smz.entity.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleService {


    List<Role> selectAllRoleByName(String username);

    int selectRoleCount();

    PageEntity<Role> findRolesPage(Integer current);

    void insertRole(Role role);

    void updateRole(Role role);

    void deleteRole(@Param("id") Integer id);

    List<Role> findAllRole();

    List<Role> findRoleById(Integer id);
}
